package com.bestcem.xm.survey.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @TableName ds_survey_respondentdata
 */
@TableName(value = "ds_survey_respondentdata")
@Data
@EqualsAndHashCode(callSuper = true)
public class SurveyRespondentData extends BaseEntity2 {
    /**
     *
     */
    @TableId(value = "id")
    private String id;

    /**
     * project_id
     */
    @TableField(value = "project_id")
    @JSONField(name = "project_id")
    private String projectId;

    /**
     * respondent_id
     */
    @TableField(value = "rid")
    private String rid;

    /**
     * 答卷答案
     */
    @TableField(value = "answers")
    private String answers;

    /**
     * 答卷序号
     */
    @TableField(value = "seq")
    private Long seq;

    /**
     * 自定义答案， 定制生成
     */
    @TableField(value = "custom_answers")
    @JSONField(name = "custom_answers")
    private String customAnswers;

    /**
     * 答题时的题目和选项顺序
     */
    @TableField(value = "question_list")
    @JSONField(name = "question_list")
    private String questionList;

    /**
     * 报告文档的url
     */
    @TableField(value = "report_url")
    @JSONField(name = "report_url")
    private String reportUrl;

    /**
     * RespondentHashQuestionList表中的hashkey
     */
    @TableField(value = "hash_q_list_key")
    @JSONField(name = "hash_q_list_key")
    private String hashQListKey;
}